import axios from "../../axios.js"

//财务类别接口
export default {
  //查询所有
  GET_All(data) {
    return axios({
      url: '/deposit/list',
      method: 'post',
      data,

    })
  },

  //新增
  INSERT(data) {
    return axios({
      url: '/deposit/insert',
      method: 'post',
      data,

    })
  },

  //修改
  UPDATE(data) {
    return axios({
      url: '/deposit/update',
      method: 'post',
      data,

    })
  },

  //删除
  DELETE(data) {
    return axios({
      url: '/deposit/delete',
      method: 'post',
      data,

    })
  },

  //协议号下拉选接口
  selectXyh(data) {
    return axios({
      url: '/otherExpenses/selectXyh',
      method: 'post',
      data,

    })
  },

  //获取定金打印详情
  PRINT_DETAILS(data) {
    return axios({
      url: '/serviceCharge/dingJInToIncome',
      method: 'get',
      params: data,

    })
  },
  /**===========重回写接口=============== */
  // 未收入定金列表
  noDepositList_Api(data) {
    return axios({
      url: '/collectionDeposit/uncollected',
      method: 'post',
      data,
    })
  },
  //转收入
  returnDeposit_Api(data) {
    return axios({
      url: '/collectionDeposit/collectTransfer',
      method: 'post',
      data,
    })
  },
  // 收取定金
  getDeposit_Api(data) {
    return axios({
      url: '/collectionDeposit/collect',
      method: 'post',
      data,
    })
  },
  // 已收取定金列表
  depositList_Api(data) {
    return axios({
      url: '/collectionDeposit/collected',
      method: 'post',
      data,
    })
  },
  // 编辑已收取定金
  editDeposit(data) {
    return axios({
      url: '/collectionDeposit/updateCollected',
      method: 'get',
      params:data,
    })
  },
  // 获取转收入记录列表
   getRevenueQueryList_Api(data) {
    return axios({
      url: '/collectionDeposit/selectTransfer',
      method: 'post',
      data,
    })
  },
// 获取转收入记录修改
editRevenueQuery(data) {
    return axios({
      url: '/collectionDeposit/updateCollect',
      method: 'get',
      params:data,
    })
  },
  // 获取单条单子转收入记录
  getList_Api(data) {
    return axios({
      url: '/collectionDeposit/selectCollectDetail',
      method: 'get',
      params:data,
    })
  },
  // 所有定金列表
  getListAll_Api(data) {
    return axios({
      url: '/collectionDeposit/collectAll',
      method: 'post',
      data,
    })
  },
};
